import './style.css'
function messageBox(text, time) {
    let mes_box = document.createElement('div'),
        mes_text = document.createElement('div');

    mes_box.className = 'mes_box';
    mes_text.className = 'mes_text';
    mes_text.innerText = text;
    mes_box.appendChild(mes_text);

    const body = document.body;
    body.appendChild(mes_box);

    setTimeout(() => body.removeChild(mes_box), time)
}

export {
    messageBox
}